/*
 * @Description: 
 * @Author: wangqi
 * @Date: 2021-04-20 07:12:51
 * @LastEditTime: 2021-04-24 11:56:19
 */
let less = require('less')

function loader(source) {
    let css = '';
    less.render(source, (err, c) => {
        css = c.css;
    });
    // 如果需要转换回车转换即可, 现在我这环境好像自己能转换
    // css = css.replace(/\n/g, '\\n');
    return css;
}

module.exports = loader;

